package com.chang.rentmall.daos;

import com.chang.rentmall.beans.PageBean;
import com.chang.rentmall.beans.QueryBean;
import com.chang.rentmall.beans.ShopBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopDao {
    public int addShop(ShopBean shopBean);
    public int updateShop(ShopBean shopBean);
    public List<ShopBean> getShops(@Param("query") QueryBean queryBean, @Param("pagination") PageBean pageBean);
    public ShopBean getShopById(@Param("id") int id);
    public ShopBean getShopByUserId(@Param("userId") int userId);
}
